<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	pageContext.setAttribute("path", basePath);
 %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
	<title>我的工程列表</title>
	<script type="text/javascript">
 function download(){
 	
 	var path = document.getElementById("projectPath").value;
 	//var realpath = encodeURI(path);
 	window.location.href= path;
 }
	</script>
</head>
<jsp:include page="../header.jsp"></jsp:include>
<body >
<marquee scrollamount="2" direction="right" >
<div class="t_1" >${ personInfo.name } 欢迎登录！ </div></marquee>
<div class="t" style="margin-top: 10px" >
	<table align="center" style="border-collapse:collapse;" width="100%" border="1">
			<tr>
				<th class="h f14" colspan="6" >
				<a class="close icon fr" style="cursor: pointer;" href="project/manage/uploadProject.jsp"> 上传</a>
						<h2>
						${ personInfo.name }的工程列表
						</h2>
					</th>
				</tr>

		<tr class="tr2">
			<td class="tac f12" style="width: 18%">
				工程ID
			</td>
			<td class="tac y-style e f12" >
				工程名称
		</td>
			<td class="tac y-style e f12" >
				工程注释
			</td>
			<td class="tac y-style e f12" >
				上传时间
			</td>
				<td class="tac y-style e f12" >
				上传更新时间
			</td>
			<td class="tac y-style e f12" >
				更新|下载
			</td>
		</tr>
		<s:iterator value="projectList">
			<tr class="tr3 f_one f12 tac" >
				<td>
					<s:property value="projectCode" />
				</td>
				<td>
					<s:property value="projectName" />
				</td>
				<td>
					<s:property value="projectContent" />
				</td>
				<td>
					<s:date name="dateCreated"/>
				</td>
				<td>
				    <s:date name="dateLastActive"/>
				</td>
				<td>
				<s:url action="load_pjManage" id="url">
				<s:param name="projectmanage.id">${id}</s:param>
				</s:url>
					<a href="${url }">更新</a>|<s:url action="downLoad" id="url" namespace="/fieldIndustry">
				<s:param name="project.id">${id}</s:param>
				</s:url>
					<a href="${url }"> 下载 </a>
				</td>
			</tr>
		</s:iterator>
		<tr>
				<th class="h f10" colspan="6" >
				<a class="close icon tac" style="cursor: pointer;" href="project/manage/uploadProject.jsp"> 上传</a>
						<h2>
						${ pagination }
						</h2>
					</th>
				</tr>
	</table>
	</div>
</body>
<jsp:include page="../footer.jsp"></jsp:include>
